﻿using BLToolkit.DataAccess;
using BLToolkit.Mapping;
using DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DE_MVC_WyFy.Models.Enities
{
	public class Cart : BaseEntity<Cart>
	{
		[PrimaryKey, Identity]
		public int RecordID { get; set; }
		public string CartID { get; set; }
		[MapIgnore]
		public float Price
		{
			get
			{
				return Product.Objects.GetById(ProdID).Price;
			}
		}
		[MapIgnore]
		public String ProdName
		{
			get
			{
				return Product.Objects.GetById(ProdID).Name;
			}
		}
		public String ProdID { get; set; }
		public int Quantity { get; set; }
		public DateTime DateCreated { get; set; }
	}
}